Defines a model of the target distribution(s).
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | public | :: | data_noise | = | 1.0d0 |
A parameter representing the noise in the data. |
Adds a new model parameter.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_target), | intent(inout) | :: | this |
The mcmc_target object. |
||
| class(distribution), | intent(in) | :: | x |
The parameter to add. |
Evaluates the PDF's for each parameter and computes a probability.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_target), | intent(in) | :: | this |
The mcmc_target object. |
||
| real(kind=real64), | intent(in), | dimension(:) | :: | x |
An N-element array containing the values at which to evaluate each of the N parameter PDF's. |
The resulting probability.
Evalautes the model variance prior PDF.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_target), | intent(in) | :: | this |
The mcmc_target object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the variance prior distribution PDF. |
The value of the variance prior distribution's PDF.
Gets a pointer to the stored parameter.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_target), | intent(in) | :: | this |
The mcmc_target object. |
||
| integer(kind=int32), | intent(in) | :: | i |
The index of the parameter to retrieve. If outside the bounds of the collection of parameters a null pointer is returned. |
A pointer to the requested parameter distribution.
Gets the number of model parameters.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_target), | intent(in) | :: | this |
The mcmc_target object. |
The parameter count.
Computes the target likelihood.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_target), | intent(inout) | :: | this |
The mcmc_target object. |
||
| real(kind=real64), | intent(in), | dimension(:) | :: | xdata |
An M-element array containing the independent data points. |
|
| real(kind=real64), | intent(in), | dimension(:) | :: | ydata |
An M-element array containing the dependent data points. |
|
| real(kind=real64), | intent(in), | dimension(:) | :: | xc |
An N-element array containing the model parameters. |
|
| real(kind=real64), | intent(in) | :: | var |
An estimate of the model variance. |
The likelihood value.
Evaluates the model at the supplied values.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_target), | intent(in) | :: | this |
The mcmc_target object. |
||
| real(kind=real64), | intent(in), | dimension(:) | :: | xdata |
An M-element array containing the values at which to evaluate the model. |
|
| real(kind=real64), | intent(in), | dimension(:) | :: | xc |
An N-element array containing the model parameters. |
|
| real(kind=real64), | intent(out), | dimension(:) | :: | y |
An M-element array where the resulting model values wil be written. |
Samples the variance prior distribution for the requested number of samples.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_target), | intent(inout) | :: | this |
The mcmc_target object. |
||
| real(kind=real64), | intent(in) | :: | vc |
The prior variance term. |
||
| integer(kind=int32), | intent(in) | :: | n |
The number of samples. |
The requested samples.